package com.job.Gai_Yian.Homework0709;

import javax.crypto.Mac;
import java.util.Scanner;

/**
 * @author Gai_Yian
 * @version 1.0
 * @since 2022-07-11 13:21:15
 */
public class Text {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请选择想要的品牌：1、Dell 2、Lenovo 3、MacBook");
        String choose=sc.next();
        if ("1".equals(choose)){
            Computer computer=new Dell();
            computer.show();
            Dell dell=new Dell();
            dell.show();
            dell.brand="游侠";
            dell.size=13;
            dell.volume();
            dell.cpu();
        }
        else if ("2".equals(choose)){
            Computer computer=new Lenovo();
            computer.show();
            Lenovo len=new Lenovo();
            len.show();
            len.game();
            len.deploy="Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz   1.80 GHz";
            len.purpose="游戏本";
        }
        else if ("3".equals(choose)){
            Computer computer=new MacBook();
            computer.show();
            MacBook mac=new MacBook();
            mac.show();
            mac.purpouse();
            mac.color="white";
            mac.size=40;
        }
        else{
            System.out.println("无适合的产品");
        }
    }
}
